<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <title>Vue项目2</title>
    <script src="./vue.js"></script>
</head>

<body>
    <div id="box">
        <ul>
            <li v-for="item  in list">
                {{item}}
            </li>
        </ul>
        <hr>
        <ul>
            <li v-for="item,index  in list">
                每一项的值是:{{item}} ,下标是: {{index}}
            </li>
        </ul>
    </div>
    <script>
        let obj = {   //注意,  接受该对象的变量名可以随意 但是该对象中的变量名是固定的
            data() {   //data中放的是一些实例  
                return {
                    list: ['aaa', 'bbb', 'ccc']
                }
            },
        };
        Vue.createApp(obj).mount('#box');
    </script>
</body>

</html>